{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}FastApp - 我的应用{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>编辑-{{ app_name }}</h1>
    <a class="btn btn-primary" href="/addCategory?app_id={{ app_id }}&app_name={{ app_name }}">添加分类</a>
</div>
<h4 class="category-title">分类列表</h4><br />
	{% for category in categories %}
		<div class="category-cell">
			{{ category.get('f_category_name') }}
			<a href="/products?category_name={{ category.get('f_category_name') }}&category_id={{ category.get('f_category_id') }}"><button class="btn btn-primary category-look">查看</button></a>
		</div>
	{% endfor %}
{% endblock %}